package org.ko.core.websupport.log;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * 
 * @author zengxm 2014-8-21
 */
public interface LogWorker {
	void log(String message, LogLevel logLevel);
	
	void log(String message, HttpServletRequest req, String[] params, LogLevel logLevel);
	
	void log(String message, HttpServletRequest req, String[] params, LogLevel logLevel, String category);
	
	/**
	 * 
	 * 得到全局日志等级
	 * @return
	 */
	LogLevel getRootLogLevel();
	
	/**
	 * 
	 * 得到自定义包的日志等级
	 * @return
	 */
	Map<String, LogLevel> getCustomLogLevel();
}